package com.estun.backroundManagementService.modules.repory.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WorkOrderExcel {

    @ColumnWidth(10)
    @ExcelProperty("ID")
    private Integer id;

    @ColumnWidth(20)
    @ExcelProperty("工单编号")
    private String orderCode;

    @ColumnWidth(20)
    @ExcelProperty("产品编号")
    private String materialCode;

    @ColumnWidth(20)
    @ExcelProperty("排程编号")
    private String scheduleCode;

    @ColumnWidth(20)
    @ExcelProperty("工单数量")
    private String orderQty;

    @ColumnWidth(20)
    @ExcelProperty("计划排程数")
    private Integer scheduleQty;

    @ColumnWidth(20)
    @ExcelProperty("已完成排程数")
    private Integer scheduleQtyFinished;

    @ColumnWidth(20)
    @ExcelProperty("达成进度")
    private String finishProgress;

    @ColumnWidth(20)
    @ExcelProperty("排程开始时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime scheduleStartTime;




}
